package chapter91;



public class ChangeDemo {
    int num=10;

    public int changeV(int value){
        System.out.println("传入未改变"+value);
        value++;
        System.out.println("改变后的值"+value);
        return value;
    }

    public static void main(String[] args) {
        ChangeDemo cd=new ChangeDemo();
       int vuale1= cd.changeV(cd.num);
       cd.num=vuale1;
        System.out.println(vuale1);
        System.out.println("num为"+cd.num);

    }
}
